package com.example.jobtask.dto;

import jakarta.validation.constraints.NotBlank;

/**
 * 登录请求DTO
 */
public class LoginRequest {
    
    @NotBlank(message = "登录账号不能为空")
    private String loginId; // 可以是用户名或邮箱
    
    @NotBlank(message = "密码不能为空")
    private String password;
    
    private Boolean rememberMe = false; // 记住我
    
    public LoginRequest() {}
    
    public LoginRequest(String loginId, String password) {
        this.loginId = loginId;
        this.password = password;
    }
    
    public String getLoginId() {
        return loginId;
    }
    
    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public Boolean getRememberMe() {
        return rememberMe;
    }
    
    public void setRememberMe(Boolean rememberMe) {
        this.rememberMe = rememberMe;
    }
    
    @Override
    public String toString() {
        return "LoginRequest{" +
                "loginId='" + loginId + '\'' +
                ", rememberMe=" + rememberMe +
                '}';
    }
}